﻿@using OPM.MultiResource

<div class="timeline-action-box dNone p-Absolute">
    <div class="timeline-action-box1"><a href="@Url.Action("EditCase", "GroupList")">@Multi.edit_comment</a></div>
    <div class="timeline-action-box2">
        <a href="@Url.Action("ContactAccount", "GroupList")?a=contact" data-block="block_contact" class="callBoxContact"
           onclick="callcolorbox2($(this).attr('href')); return false;">@Multi.coordinate</a>
    </div>
    <div class="timeline-action-box3">
        <a href="@Url.Action("ViewCaseDetail", "GroupList")?a=contact" data-block="block_contact" class="callBoxContact"
           onclick="callcolorbox3($(this).attr('href')); return false;">@Multi.report</a>
    </div>
    <div class="timeline-action-box4">
        <a href="@Url.Action("DuplicateCase", "GroupList")?a=contact" data-block="block_contact" class="callBoxContact"
           onclick="callcolorbox4($(this).attr('href')); return false;">@Multi.operater</a>
    </div>
    <div class="timeline-action-box4">
        <a href="@Url.Action("ViewCase", "GroupList")">
            @Multi.viewcase</a>
    </div>
</div>


<script>

    function callcolorbox2(link) {
        $.colorbox({
            iframe: true,
            width: "650px",
            height: "540px",
            href: link,
            fastIframe: false,
            onClosed: function () {

                if (parent.receive_person_staus) {
                    $.colorbox({
                        iframe: true,
                        width: "420px",
                        height: "250px",
                        fastIframe: false,
                        href: parent.receive_person_link
                    });
                    
                    parent.receive_person_staus = false;
                }
            }
        });
    }
    function callcolorbox3(link) {
        $.colorbox({
            iframe: true,
            width: "650px",
            height: "500px",
            fastIframe: false,
            href: link
        });
    }
    function callcolorbox4(link) {
        $.colorbox({
            iframe: true,
            width: "650px",
            height: "680px",
            fastIframe: false,
            href: link
        });
    }

</script>